<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../core/include.inc.jsp"%>

<style>
    .pageFormContent p {
        width: 90%;
    }
</style>

<div class="pageContent">
    <form method="post" action="module_manage_add" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone)">

        <div class="pageFormContent nowrap" layoutH="57">
            <p>
                <label>用户</label>
                <select name="userId" class="combox">
                    <c:forEach items="${users}" var="user">
                        <option value="${user.id}">${user.workNo}</option>
                    </c:forEach>
                </select>
            </p>

            <p>
                <label>项目地址</label>
                <input type="text" name="projectUrl" class="required" maxlength="100" />
            </p>

            <p>
                <label>状态</label>
                <select class="combox" name="status">
                    <option value="1">上线</option>
                    <option value="2">下线</option>
                </select>
            </p>

            <p>
                <label>模块</label>
                <ul class="tree treeFolder treeCheck expand" oncheck="getTreeStr">
                    ${moduleTree}
                </ul>
            </p>

        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent" style="text-align: center;">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>